package com.example.bus.spring.bus;

import com.example.bus.entity.UserEntity;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author guoQ.z
 * @date 2021/3/3
 */
@Getter
public class DemoBus extends ApplicationEvent {

    private UserEntity userEntity;

    public DemoBus(Object source, UserEntity userEntity) {
        super(source);
        this.userEntity = userEntity;
    }


//        public DemoBus(Object source) {
//        super(source);
//    }
//
//    public UserEntity getUserEntity() {
//        return userEntity;
//    }
//
//    public void setUserEntity(UserEntity userEntity) {
//        this.userEntity = userEntity;
//    }

}
